array = [21, 12, 15, 36, 8, 19, 6, 31]

sorted_array = sorted(array)

print('Before:', array)
print('Sorted:', sorted_array)
